package com.yunfeisoft.business.model;

import com.yunfeisoft.common.base.BaseModel;
import com.yunfeisoft.common.sql.record.TransientField;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * ClassName: OutHospitalReceipt
 * Description: 老人出院结算单
 *
 * @Author: Jackie liu
 * Date: 2020-06-05
 */
@Entity
@Table(name = "TT_OUT_HOSPITAL_RECEIPT")
public class OutHospitalReceipt extends BaseModel implements Serializable {

    /**
     * Field serialVersionUID: 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * 老人入住关联id
     */
    @Column
    private String elderId;

    /**
     * 应收金额
     */
    @Column
    private BigDecimal receivableAmount;

    /**
     * 应退金额
     */
    @Column
    private BigDecimal retreatAmount;

    /**
     * 备注
     */
    @Column
    private String remark;

    /**
     * 状态
     */
    @Column
    private Integer status;

    public String getStatusStr() {
        switch (status) {
            case 1:
                return "未结算";
            case 2:
                return "已结算";
                default:
                    return "";
        }
    }

    @TransientField
    private String elderName;

    @TransientField
    private String leaveDate;

    @TransientField
    private String reason;

    public String getElderName() {
        return elderName;
    }

    public void setElderName(String elderName) {
        this.elderName = elderName;
    }

    public String getLeaveDate() {
        return leaveDate;
    }

    public void setLeaveDate(String leaveDate) {
        this.leaveDate = leaveDate;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getElderId() {
        return elderId;
    }

    public void setElderId(String elderId) {
        this.elderId = elderId;
    }

    public BigDecimal getReceivableAmount() {
        return receivableAmount;
    }

    public void setReceivableAmount(BigDecimal receivableAmount) {
        this.receivableAmount = receivableAmount;
    }

    public BigDecimal getRetreatAmount() {
        return retreatAmount;
    }

    public void setRetreatAmount(BigDecimal retreatAmount) {
        this.retreatAmount = retreatAmount;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


}